package com.lebang.mapper;

import com.lebang.configuration.datasource.DataSource;
import com.lebang.domain.CencesTaskData;
import com.lebang.example.CencesTaskDataExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * CencesTaskDataMapper继承基类
 */
@Mapper
public interface CencesTaskDataMapper extends MyBatisBaseDao<CencesTaskData, Integer, CencesTaskDataExample> {
    @DataSource("commonDB")
    int insertTaskData(CencesTaskData cencesTaskData);

    @DataSource("commonDB")
    int deleteByAppIdAndTime(@Param("appId") Integer appId, @Param("time") int time);

    @DataSource("commonDB")
    List<CencesTaskData> sumGroubyTask(@Param("time") int time);
}